<?php
session_start();
if (!$_COOKIE['invite_code']) {
	$code = array(
		'9588889',
		'7347222',
		'2660552',
		'8025428',
		'7255299',
		'4542799',
		'7731038',
		'6764628',
		'9200614',
		'9865525',
		'6180439',
		'1166086',
		'1962334',
		'7913475',
		'3845971',
		'5282398',
		'7944417',
		'2819333',
		'8967702',
		'1703683',
		'5341325',
		'2057862',
		'6726693',
		'3554104',
		'4470817',
		'8760264',
		'6944906',
		'8884576',
		'1903132',
		'1403850',
		'2589291',
		'8824220',
		'4623352',
		'2263852',
		'2721457',
		'3229528',
		'8295783',
		'7765838',
		'2464272',
		'5415213',
		'7879707',
		'5908449',
		'4133936',
		'8192719',
		'9558102',
		'2464112',
		'1744903',
		'5476714',
		'6357312',
		'1008697',
		'9095077',
		'8841744',
		'7478024',
		'727681',
		'7548878',
		'3396448',
		'6695703',
		'8756914',
		'9007205',
		'2738244',
		'7688550',
		'6612856',
		'5233929',
		'2997218',
		'4744804',
		'7898122',
		'9332127',
		'5026438',
		'5034165',
		'6013643',
		'1825541',
		'2450073',
		'3161163',
		'5235180',
		'5516046',
		'6266583',
		'8128240',
		'2035077',
		'9602529',
		'4241108',
		'2370813',
		'3592031',
		'8812818',
		'1092508',
		'3196190',
		'5868735',
		'1977048',
		'7019850',
		'5091941',
		'9268740',
		'8490679',
		'8767674',
		'5899372',
		'7266822',
		'1419211',
		'3460641',
		'5495360',
		'4812469',
		'7489214',
		'6813146',
		'5930158',
		'9245207',
		'7468078',
		'4639385',
		'3975508',
		'8370395',
		'3073175',
		'7552412',
		'1127572',
		'5954373',
		'5668250',
		'8025735',
		'1797944',
		'6861664',
		'7768419',
		'4939934',
		'9908853',
		'2982665',
		'4986978',
		'6111678',
		'5985884',
		'8799519',
		'7872989',
		'6927233',
		'6278356',
		'1885428',
		'4932215',
		'8027973',
		'6423432',
		'1722294',
		'9154510',
		'7524215',
		'2837996',
		'5204328',
		'1959408',
		'7232387',
		'5611241',
		'4707502',
		'8577834',
		'9567384',
		'2221417',
		'2291701',
		'5423680',
		'1449137',
		'7817201',
		'4178598',
		'3571965',
		'5844288',
		'9757120',
		'1780981',
		'2048416',
		'3813767',
		'8139618',
		'9691331',
		'8322222',
		'8786901',
		'3758162',
		'5557693',
		'4560950',
		'6067700',
		'7999667',
		'6304730',
		'8428715',
		'2636319',
		'2737419',
		'5093979',
		'5807288',
		'3339970',
		'2365281',
		'1463525',
		'7920588',
		'2889249',
		'7684209',
		'4937501',
		'5539131',
		'3900813',
		'1835581',
		'6615298',
		'5318491',
		'1629651',
		'6966236',
		'6062949',
		'1135738',
		'8399820',
		'4190903',
		'4588662',
	);

	$t = array_rand($code, 1);
	$c = $code[$t];
	setcookie('invite_code', $c, time()+86400*3, '/');
	return $c;
} else {
	return $_COOKIE['invite_code'];
}

